package cn.wxManage.goodsManage.dao;

import cn.common.goods.dao.BaseGoodsMapper;
import cn.common.goods.model.BaseGoods;
import cn.wxManage.goodsManage.model.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper extends BaseGoodsMapper {
    Goods getGoodsByCode(String code);

    Goods getGoodsInfo(Integer goodsId);

    List<Goods> getGoodsList(Goods goods);

    List<Goods> getHotGoodsList();

    List<Goods> getSearchGoodsList(@Param("name") String name);
}